package com.asion.controller;

import com.asion.domain.Detail;
import com.asion.domain.Video;
import com.asion.mapper.DetailMapper;
import com.asion.mapper.VideoMapper;
import com.asion.service.DetailService;
import com.asion.vo.VideoVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.sql.Wrapper;
import java.util.List;

@RestController
@RequestMapping("/video")
public class DetailController {
    @Autowired
    private DetailMapper detailMapper;
    @Autowired
    private DetailService detailService;
    @RequestMapping("/detail")
    private VideoVo detail(String id){
        VideoVo  one = detailService.selectOne(id);
      return one;
    }
    @RequestMapping("/videoDetail")
    private VideoVo videoDetail(String name){
        VideoVo  one = detailService.selectOneByName(name);
        return one;
    }
}
